<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PersonasViewDlg" widgetVar="PersonasViewDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.ViewPersonasTitle}">

            <h:form id="PersonasViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{personasController.selected != null}">

                        <h:outputText value="#{bundle.ViewPersonasLabel_idPersonas}"/>
                        <h:outputText value="#{personasController.selected.idPersonas}" title="#{bundle.ViewPersonasTitle_idPersonas}"/>

                        <h:outputText value="#{bundle.ViewPersonasLabel_tipoid}"/>
                        <h:outputText value="#{personasController.selected.tipoid}" title="#{bundle.ViewPersonasTitle_tipoid}"/>

                        <h:outputText value="#{bundle.ViewPersonasLabel_numdoc}"/>
                        <h:outputText value="#{personasController.selected.numdoc}" title="#{bundle.ViewPersonasTitle_numdoc}"/>

                        <h:outputText value="#{bundle.ViewPersonasLabel_nombres}"/>
                        <h:outputText value="#{personasController.selected.nombres}" title="#{bundle.ViewPersonasTitle_nombres}"/>

                        <h:outputText value="#{bundle.ViewPersonasLabel_apellidos}"/>
                        <h:outputText value="#{personasController.selected.apellidos}" title="#{bundle.ViewPersonasTitle_apellidos}"/>

                        <h:outputText value="#{bundle.ViewPersonasLabel_telefonoFijo}"/>
                        <h:outputText value="#{personasController.selected.telefonoFijo}" title="#{bundle.ViewPersonasTitle_telefonoFijo}"/>

                        <h:outputText value="#{bundle.ViewPersonasLabel_celular}"/>
                        <h:outputText value="#{personasController.selected.celular}" title="#{bundle.ViewPersonasTitle_celular}"/>

                        <h:outputText value="#{bundle.ViewPersonasLabel_correo}"/>
                        <h:outputText value="#{personasController.selected.correo}" title="#{bundle.ViewPersonasTitle_correo}"/>

                        <h:outputText value="#{bundle.ViewPersonasLabel_direccion}"/>
                        <h:outputText value="#{personasController.selected.direccion}" title="#{bundle.ViewPersonasTitle_direccion}"/>

                        <h:outputText value="#{bundle.ViewPersonasLabel_empresariosCollection}"/>

                        <h:outputText value="#{bundle.ViewPersonasLabel_jefesCollection}"/>

                        <h:outputText value="#{bundle.ViewPersonasLabel_instructoresCollection}"/>

                        <h:outputText value="#{bundle.ViewPersonasLabel_aprendicesCollection}"/>

                        <h:outputText value="#{bundle.ViewPersonasLabel_usuariosCollection}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{bundle.Close}" onclick="PersonasViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
